package com.atguigu.gulimall.order.feign;

import com.atguigu.common.utils.R;
import com.atguigu.gulimall.order.vo.MemberAddressVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient("gulimall-member")
public interface MemberFeignService {

    @GetMapping("/member/memberreceiveaddress/getAddress/{memberId}")
    List<MemberAddressVO> getAddress(@PathVariable("memberId") Long memberId);

    @GetMapping("/member/memberreceiveaddress/getAddressId/{addrId}")
    R getAddressId(@PathVariable("addrId") Long addrId);
}
